package cn.edu.sdjzu.xg.eagle.dao;

import cn.edu.sdjzu.xg.eagle.entity.Department;
import cn.edu.sdjzu.xg.eagle.entity.School;
import cn.edu.sdjzu.xg.eagle.exception.BaseException;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Collection;

public interface DepartmentDaoInterface {
    Department find(Long id) throws SQLException;

    boolean update(Department department) throws SQLException;
    boolean delete(Department department) throws SQLException;
    Collection<Department> findAll() throws SQLException, BaseException;
    boolean add(Department department) throws SQLException, BaseException;
    boolean delete(Long id) throws SQLException, BaseException;
    int countAll(School school) throws SQLException, BaseException;

}